﻿CREATE TABLE [dbo].[MedLabImage]
(
	[Id] INT NOT NULL PRIMARY KEY IDENTITY, 
    [MedLabId] INT NULL, 
    [Base64Image] NTEXT NULL
)

GO
EXEC sp_addextendedproperty @name = N'MS_Description',
    @value = N'主键，自增长',
    @level0type = N'SCHEMA',
    @level0name = N'dbo',
    @level1type = N'TABLE',
    @level1name = N'MedLabImage',
    @level2type = N'COLUMN',
    @level2name = N'Id'
GO
EXEC sp_addextendedproperty @name = N'MS_Description',
    @value = N'所属检验单Id',
    @level0type = N'SCHEMA',
    @level0name = N'dbo',
    @level1type = N'TABLE',
    @level1name = N'MedLabImage',
    @level2type = N'COLUMN',
    @level2name = N'MedLabId'
GO
EXEC sp_addextendedproperty @name = N'MS_Description',
    @value = N'Base64序列化的图片文件',
    @level0type = N'SCHEMA',
    @level0name = N'dbo',
    @level1type = N'TABLE',
    @level1name = N'MedLabImage',
    @level2type = N'COLUMN',
    @level2name = N'Base64Image'